package com.wwwarehouse.usercenter.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;

import java.util.List;

/**
 * @author : mundane
 * @time : 2017/9/27 11:41
 * @description :
 * @file : AuthorityViewPagerAdapter.java
 */

public class AuthorityViewPagerAdapter extends FragmentStatePagerAdapter {
	List<Fragment> mFragmentList;

	public AuthorityViewPagerAdapter(FragmentManager fm, List<Fragment> fragmentList) {
		super(fm);
		mFragmentList = fragmentList;
	}

	@Override
	public Fragment getItem(int position) {
		return mFragmentList.get(position);
	}

	@Override
	public int getCount() {
		return mFragmentList.size();
	}

	@Override
	public void destroyItem(ViewGroup container, int position, Object object) {
	}

	@Override
	public int getItemPosition(Object object) {
		return POSITION_NONE;
	}
}
